#!/usr/bin/env python
#coding=gbk
import sqlite3

def c_select(cur, sql, records_map_list):
    cur.execute(sql)
    res = cur.fetchall()
    del records_map_list[:]
    records_map_list.extend([dict(zip([j[0] for j in cur.description], i)) for i in res])
    return res
